<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>在IDEA中开启热部署与Run Dashboard | rongshen</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  
  
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/css/highlight.css">

  
  <meta name="description" content="在idea中开启热部署和run dashboard可以帮助我们更好的进行开发">
<meta property="og:type" content="article">
<meta property="og:title" content="在IDEA中开启热部署与Run Dashboard">
<meta property="og:url" content="http://example.com/2020/09/26/%E5%9C%A8IDEA%E4%B8%AD%E5%BC%80%E5%90%AF%E7%83%AD%E9%83%A8%E7%BD%B2%E4%B8%8ERun-Dashboard/index.html">
<meta property="og:site_name" content="rongshen">
<meta property="og:description" content="在idea中开启热部署和run dashboard可以帮助我们更好的进行开发">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="http://cdn.rongshen2020.com/2020926a1.png">
<meta property="og:image" content="http://cdn.rongshen2020.com/2020926a2.png">
<meta property="og:image" content="http://cdn.rongshen2020.com/2020926a3.png">
<meta property="og:image" content="http://cdn.rongshen2020.com/2020926a4.png">
<meta property="article:published_time" content="2020-09-26T02:12:43.000Z">
<meta property="article:modified_time" content="2021-05-07T06:50:11.628Z">
<meta property="article:author" content="John Doe">
<meta property="article:tag" content="IDEA工具">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://cdn.rongshen2020.com/2020926a1.png"><meta name="generator" content="Hexo 6.1.0"></head>

<body>
  <div id="wrapper">
    <header id="header">
  <h1 id="title">
    <a href="/">rongshen</a>
  </h1>
  <nav>
    
    
      
      <a class="nav-link" href="/">Home</a>
    
      
        <span class="nav-spacer">×</span>
      
      <a class="nav-link" href="/archives">Archives</a>
    
      
        <span class="nav-spacer">×</span>
      
      <a class="nav-link" target="_blank" rel="noopener" href="https://github.com/Aaron-boom">Github</a>
    
      
        <span class="nav-spacer">×</span>
      
      <a class="nav-link" href="/2020/04/13/About-Me/">About</a>
    
    
  </nav>
</header>

    <div id="content">
      <article id="post-在IDEA中开启热部署与Run-Dashboard" class="article article-type-post" itemprop="blogPost" itemscope>
  <div class="article-inner">
    
      <header class="article-header">
        
  
    <h2 class="article-title" itemprop="headline name">
      在IDEA中开启热部署与Run Dashboard
    </h2>
  


        <div class="article-meta">
          <time class="article-date" datetime="2020-09-26T02:12:43.000Z" itemprop="datePublished">2020-09-26</time>

          
        </div>
      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
      
        <blockquote>
<p>在idea中开启热部署和run dashboard可以帮助我们更好的进行开发</p>
</blockquote>
<span id="more"></span>


<h2 id="开启热部署："><a href="#开启热部署：" class="headerlink" title="开启热部署："></a>开启热部署：</h2><ol>
<li><p>导入依赖：</p>
<pre><code class="java">&lt;dependency&gt;
    &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
    &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;
    &lt;scope&gt;runtime&lt;/scope&gt;
    &lt;optional&gt;true&lt;/optional&gt;
&lt;/dependency&gt;
</code></pre>
</li>
<li><p>粘贴插件到聚合父类总工程的pom.xml里面：</p>
<pre><code class="java">&lt;build&gt;
  &lt;plugins&gt;
    &lt;plugin&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.2.2.RELEASE&lt;/version&gt;
      &lt;configuration&gt;
        &lt;fork&gt;true&lt;/fork&gt;
        &lt;addResources&gt;true&lt;/addResources&gt;
      &lt;/configuration&gt;
    &lt;/plugin&gt;
  &lt;/plugins&gt;
&lt;/build&gt;
</code></pre>
</li>
<li><p>在idea中开启热部署：</p>
<p> <img src="http://cdn.rongshen2020.com/2020926a1.png"></p>
</li>
<li><p>更新值：</p>
<ol>
<li><p>快捷键Ctrl+shift+alt+&#x2F;</p>
<p><img src="http://cdn.rongshen2020.com/2020926a2.png"></p>
<p>将下面的选项勾上：</p>
<p><img src="http://cdn.rongshen2020.com/2020926a3.png"></p>
<p><img src="http://cdn.rongshen2020.com/2020926a4.png"></p>
</li>
<li><p>重启IDEA~</p>
<ul>
<li>如果电脑性能跟的上的话，很推荐这个。</li>
</ul>
</li>
</ol>
</li>
</ol>
<h2 id="开启Run-Dashboard："><a href="#开启Run-Dashboard：" class="headerlink" title="开启Run Dashboard："></a>开启Run Dashboard：</h2><p>在工程的<code>.idea</code>的文件夹里的<code>workspace.xml</code>文件里添加上：</p>
<pre><code class="java">&lt;component name=&quot;RunDashboard&quot;&gt;
 &lt;option name=&quot;ruleStates&quot;&gt;
     &lt;list&gt;
       &lt;RuleState&gt;
           &lt;option name=&quot;name&quot; value=&quot;ConfigurationTypeDashboardGroupingRule&quot; /&gt;
       &lt;/RuleState&gt;
       &lt;RuleState&gt;
          &lt;option name=&quot;name&quot; value=&quot;StatusDashboardGroupingRule&quot; /&gt;
       &lt;/RuleState&gt;
     &lt;/list&gt;
  &lt;/option&gt;
  &lt;option name=&quot;contentProportion&quot; value=&quot;0.22874807&quot; /&gt;
  &lt;option name=&quot;configurationTypes&quot;&gt;
     &lt;set&gt;
          &lt;option value=&quot;SpringBootApplicationConfigurationType&quot; /&gt;
     &lt;/set&gt;
  &lt;/option&gt;
 &lt;/component&gt;
</code></pre>
<p>即可！</p>

      
    </div>
    
    
    <div class="article-category">
      
        <b>Categories:</b>
        <a class="article-category-link" href="/categories/tips/">tips</a>
      
      
        <br/>
      
      
        <b>Tags:</b>
        <a class="article-tag-none-link" href="/tags/IDEA%E5%B7%A5%E5%85%B7/" rel="tag">IDEA工具</a>
      
    </div>
    
    
  </div>
</article>

  
<nav id="article-nav" class="article-nav">
  
    <a href="/2020/09/26/springcloud%E4%B9%8BRibbon/" id="article-nav-newer" class="article-nav-link-wrap newer">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          springcloud之Ribbon
        
      </div>
    </a>
  
  
    <a href="/2020/09/25/eureka%E3%80%81zookeeper%E3%80%81consul%E4%B8%8ECAP%E7%90%86%E8%AE%BA/" id="article-nav-older" class="article-nav-link-wrap older">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">
        
          eureka、zookeeper、consul与CAP理论
        
      </div>
    </a>
  
</nav>






    </div>
  </div>
  




<div id="settings-container">
  <div id="dark-mode">dark</div>
  <div id="sans-font">sans</div>
</div>
<script type="text/javascript">
let d=document,r=d.documentElement.style,f=r.setProperty.bind(r),l=localStorage,s=l.getItem('s')||(window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches),n=l.getItem('n'),m=d.getElementById("dark-mode"),b=()=>{f('--bg-color','#fafafa');f('--code-bg-color','#f4f4f4');f('--text-color','#212121');f('--secondary-color','#808080');f('--tertiary-color','#b0b0b0');f('--link-color','#b5c8cf');f('--link-hover-color','#618794');f('--link-bg-color','#dae4e7');f('--selection-color','#dae4e7');m.innerHTML="dark"},c=()=>{f('--bg-color','#212121');f('--code-bg-color','#292929');f('--text-color','#fff');f('--secondary-color','#c0c0c0');f('--tertiary-color','#6e6e6e');f('--link-color','#4d6b75');f('--link-hover-color','#96b1bb');f('--link-bg-color','#5d828e');f('--selection-color','#acc1c9');m.innerHTML="light"},o=d.getElementById("sans-font"),e=()=>{f('--body-stack','"Lora", "Georgia", "Times New Roman", serif');o.innerHTML="sans"},g=()=>{f('--body-stack','"Lato", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "Verdana", sans-serif');o.innerHTML="serif"};m.onclick=()=>{if(s==2){s=1;l.setItem('s',s);c()}else{s=2;l.setItem('s',s);b()}};o.onclick=()=>{if(n==2){n=1;l.setItem('n',n);g()}else{n=2;l.setItem('n',n);e()}};if(!s){s=2;l.setItem('s',2)};if(s==1){c()};if(!n){n=2;l.setItem('n',2)};if(n==1){g()};
</script>




</body>
</html>
